<div class="pageContent">
    <form method="post" action="{:url('Company/addcompany')}" class="pageForm" onsubmit="return validateCallback(this, navTabAjaxDone)">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>商家名称：</label>
                <input type="text" name="company_name" size="20" maxlength="50" class="required"/>
            </div>
            <div class="unit">
                <label>商家电话：</label>
                <input type="text" name="telephone" size="20" maxlength="50" class="required" placeholder="区号-固定电话"/>
            </div>
            <div class="unit">
                <label>所在地：</label>
                <select class="combox" name="province" ref="w_combox_city" refUrl="{:url('Company/selectajax')}?id={value}" id="w_combox_stores" >
                    <option value="">--全部--</option>
                    {volist name="province" id="vo"}
                        <option id="pro" value="{$vo.id}">{$vo.name}</option>
                    {/volist}
                </select>
                <select class="combox" name="city" id="w_combox_city" ref="w_combox_region" refUrl="{:url('Company/selectajax')}?id={value}">
                    <option value="">--全部--</option>
                    {volist name="city|default=''" id="vo2"}
                        <option id="cit" value="{$vo2.id}">{$vo2.name}</option>
                    {/volist}
                </select>
                <select class="combox" name="district" id="w_combox_region">
                    <option value="">--全部--</option>
                    {volist name="district|default=''" id="vo3"}
                        <option id="reg" value="{$vo3.id}">{$vo3.name}</option>
                    {/volist}
                </select>
            </div>
            <div class="unit">
                <label>详细地址：</label>
                <input type="text" name="company_addr" size="30" maxlength="50" class="required"/>
            </div>
            <div class="unit">
                <label>商家描述：</label>
                <textarea name="company_desc" rows="7" cols="40"></textarea>
            </div>
            <div class="unit">
                <label>商家logo：</label>
                {:widget('Upload/image', ['logo_url', ''])}
            </div>
            <div class="unit">
                <label>承检车型:</label>
                {volist name="vehicle" id="item"}
                <input type="checkbox" name="vehicle_ids[]" value="{$item.id}" class="required" />{$item.title}
                {/volist}
            </div>
            <div class="unit">
                <label>后台登录账号：</label>
                <input type="text" name="username" size="20" maxlength="50" class="required"/>
            </div>
             <div class="unit">
                <label>负责人姓名：</label>
                <input type="text" name="shop_leader" size="20" maxlength="50" class="required "/>
            </div>
             <div class="unit">
                <label>负责人联系电话：</label>
                <input type="text" name="shop_leader_phone" size="20" maxlength="50" class="required " placeholder="手机号码"/>
            </div>
            <div class="unit">
                <label>营业开始时间：</label>
                <input name="start_time" type="text" class="date required" datefmt="HH:mm" readonly="true">
                <label>营业结束时间：</label>
                <input name="end_time" type="text" class="date required" datefmt="HH:mm" readonly="true">
            </div>
            <div class="unit">
                <label>检车站缩写：</label>
                <input type="text" name="company_abbr" size="20" maxlength="5" class="required" placeholder="如：捷安-JA,众普-ZP" />
            </div>
            <div class="unit">
                <label>排序：</label>
                <input type="text" name="sort" size="20" maxlength="50" class="required digits"/>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>

